<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:p="http://primefaces.org/ui">
<ui:composition>
	<p:dataTable var="role" value="#{roleModel.list}" filterEvent="enter"
		rendered="#{roleModel.isInitialized}" paginator="true" rows="10"
		rowsPerPageTemplate="5,7,10,15,20,30,40,50"
		paginatorTemplate="{CurrentPageReport}  {FirstPageLink} {PreviousPageLink} {PageLinks} {NextPageLink} {LastPageLink} {RowsPerPageDropdown}">
		<f:facet name="header">List of Role</f:facet>

		<p:column>
			<p:selectBooleanCheckbox value="#{role.selected}">
				<ui:remove>
					<p:ajax event="change" process="@this"></p:ajax>
				</ui:remove>
			</p:selectBooleanCheckbox>
		</p:column>
		<p:column headerText="name" sortBy="#{role.name}">
			<h:outputText value="#{role.name}" />
		</p:column>
		<p:column headerText="description">
			<h:outputText value="#{role.description}" />
		</p:column>
	</p:dataTable>
</ui:composition>
</html>